package de.andreavicentini.teatralia.pages;

import org.magiclabs.htmlx.HTMLString;
import org.magiclabs.htmlx.TextStructure;

public class Person {

	public enum Nationality implements TextStructure.TextKey {
		italian, german, russian;
	}

	public enum Sex {
		M, F
	}

	protected final Sex sex;
	
	public Person(String firstName, String lastName, Sex sex, String city, Nationality nationality) {
		this.firstName = firstName;
		this.sex = sex;
		this.city = city;
		this.nationality = nationality;
		this.lastName = lastName;
	}
	
	
	protected final String city;
	public String getCity() {
		return city;
	}

	protected final Nationality nationality;
	public HTMLString getNationality() {
		return Tokens.get(nationality.name(), sex);
	}

	protected final String firstName;
	public String getFirstName() { return firstName; }

	protected final String lastName;
	public String getLastName() { return lastName; }

	public HTMLString getBornIn() {
		return Tokens.get("born", this.sex);
	}

}
